package com.atguigu.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class GulimallWebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry){
        //registry.addViewController("/login.html").setViewName("login");//访问/login.html跳转到login页面
        registry.addViewController("/reg.html").setViewName("reg");//访问呢reg.html跳转到reg页面
    }
}
